package zsh;

import org.springframework.cache.annotation.EnableCaching;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;

/**
 * @author shihai.zhang
 * @date 2020/6/6
 */
@Configuration
@EnableAspectJAutoProxy
@EnableAsync
public class AnnotationConfig {

	@Bean("one")
	CycleDependenceOne one() {
		return new CycleDependenceOne();
	}

	@Bean
	CycleDependenceTwo two() {
		return new CycleDependenceTwo();
	}

	@Bean
	SimpleAspectJ aspectJ() {
		return  new SimpleAspectJ();
	}
}
